* sysdep.c (emacs_read, emacs_write): Check for negative sizes
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 12 Apr 2011 08:12:01 +0000 (01:12 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 12 Apr 2011 08:12:01 +0000 (01:12 -0700)
commit87b931a2051f083ea5646df7986e9d09c8fd70d8
tree7ff1f3cc030b3abdd88d63e54d3ac14f006a65bb
parent7cc5bea0b5989f3bb9b0439a666224ac0381bf12
* sysdep.c (emacs_read, emacs_write): Check for negative sizes

since callers should never pass a negative size.
Change the signature to match that of plain 'read' and 'write'; see
<http://lists.gnu.org/archive/html/emacs-devel/2011-04/msg00397.html>.
* lisp.h: Update prototypes of emacs_write and emacs_read.
src/ChangeLog
src/lisp.h
src/sysdep.c